package cn.qfei.adreport.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author li
 */
@Data
public class MaterialInfoEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 回数据行的唯一id，用于查询排序和数据去重，注：由于数据会每天更新，该字段只能保证同一天内（update_date字段）唯一
     */
    @JSONField(name = "row_id")
    private Long rowId;

    /**
     * 自动升级版广告id
     */
    @JSONField(name = "auto_promotion_ids")
    private List<Long> autoPromotionIdList;

    /**
     * 自动计划id数组
     */
    @JSONField(name = "auto_ad_ids")
    private List<Long> autoAdIdList;

    /**
     * 升级版广告id
     */
    @JSONField(name = "promotion_ids")
    private List<Long> promotionIdList;

    /**
     * 计划id数组
     */
    @JSONField(name = "ad_ids")
    private List<Long> adIdList;

    /**
     * 素材标签
     */
    @JSONField(name = "material_tags")
    private List<String> materialTagList;

    /**
     * 素材创建日期
     */
    @JSONField(name = "material_create_time")
    private Date materialCreateTime;

    /**
     * 消耗
     */
    private Long cost;

    /**
     * 【政策粒度】消耗
     */
    @JSONField(name = "policy_cost")
    private Long policyCost;

    /**
     * 【政策粒度】是否有效素材
     */
    @JSONField(name = "is_valid_video_material")
    private Integer isValidVideoMaterial;

    /**
     * 当月最新一天素材是否在投
     */
    @JSONField(name = "material_is_effective")
    private Integer materialIsEffective;

    /**
     * 素材ID
     */
    @JSONField(name = "material_id")
    private Long materialId;


    private static final long serialVersionUID = 1L;
}
